package Main_logic;

public class Book {//一本书得描述
    private String book_name;
    private String author;
    private String price;
    private boolean is_borrow;

    public Book(String book_name,String author,String price) {
        this.book_name = book_name;
        this.author = author;
        this.price = price;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public boolean isIs_borrow() {
        return is_borrow;
    }

    public void setIs_borrow(boolean is_borrow) {
        this.is_borrow = is_borrow;
    }

    @Override
    public String toString() {
        return "Book{" +
                "book_name='" + book_name + '\'' +
                ", author='" + author + '\'' +
                ", price='" + price + '\'' +
                ", is_borrow=" + is_borrow +
                '}';
    }
}
